package com.dsdl.chatapp.common.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ListView;

import com.dsdl.chatapp.common.utils.KeyboardUtil;

/**
 * Created by zzg on 2016/9/5.
 */
public class MCListView extends ListView {
    public MCListView(Context context) {
        super(context);
    }

    public MCListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MCListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        KeyboardUtil.hideKeyboard(this);
        return super.onTouchEvent(ev);
    }
}
